package utils;

/**
 * Created with IntelliJ IDEA.
 * User: gianluca
 * Date: 18/02/13
 * Time: 15.27
 * To change this template use File | Settings | File Templates.
 */
public class DistinctGeneratedValue {
    private static int counter = 0;

    public static int getUniqueInt() {
        return ++counter;
    }

    public static Float getUniqueFloat() {
        return new Float(getUniqueInt());
    }

    public static Double getUniqueDouble() {
        return new Double(getUniqueInt());
    }

    public static String getUniqueString(String baseName) {
        return baseName.concat(String.valueOf(getUniqueInt()));
    }
}
